package com.nisco.controller;

import com.nisco.dubbo.IHelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController
{
    @Reference
    private IHelloService helloService;

    @GetMapping("/say")
    public String sayHello()
    {
        return helloService.sayHello("123");
    }
}